package br.com.jogo.screens;

import br.com.jogo.MagesGame;
import br.com.jogo.assets.Assets;

import com.badlogic.gdx.graphics.g2d.SpriteBatch;

public class TestScreen extends BaseScreen {

	public TestScreen(MagesGame game) {
		super(game);
	}

	@Override
	/** Called when this screen becomes the current screen. */
	public void show() {

	}

	@Override
	public void update(float delta) {
		camera.position.x += delta * 10;
	}

	@Override
	public void draw(SpriteBatch spritebatch, float delta) {
		
		spritebatch.begin();
		
		//Draw a texture region
		spritebatch.draw(Assets.atlas.findRegion("background"), 0, 0);
		
		//Draw a text with given font
		Assets.demoFont.draw(spritebatch, "Camera pos: " + camera.position.x
				+ ", " + camera.position.y, camera.position.x - 100,
				camera.position.y - 120);
		
		spritebatch.draw(Assets.redmage[2][0], 180, 50);
		
		
		spritebatch.end();
	}

	@Override
	public void dispose() {

	}

	@Override
	public boolean onTouchUp(float x, float y, int pointer, int button) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onTouchDown(float x, float y, int pointer, int button) {
		// TODO Auto-generated method stub
		return false;
	}

	@Override
	public boolean onTouchDragged(float x, float y, int pointer) {
		// TODO Auto-generated method stub
		return false;
	}
	


}
